import urllib2

r = urllib2.urlopen('http://www.baidu.com')
html = r.read()

fp = open('/tmp/a.txt','r+')

# fp.write('hello, world')
fp.write(html)

s = fp.readline()
print (s)
fp.close()

s_in = raw_input('your name: ')
print (s_in)

